package com.quktzhuanka.app.activity;

import android.view.View;
import android.widget.TextView;

import com.quktzhuanka.app.R;
import com.quktzhuanka.app.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class PayResultActivity extends BaseActivity {
    @BindView(R.id.tv_left)
    TextView tvLeft;
    @BindView(R.id.tv_title)
    TextView tvTitle;
    @BindView(R.id.txt_money)
    TextView txtMoney;
    @BindView(R.id.txt_order_num)
    TextView txtOrderNum;

    @Override
    protected void initUI() {
        setContentView(R.layout.actiivty_pay_result);
        ButterKnife.bind(this);
        tvLeft.setVisibility(View.VISIBLE);
        tvTitle.setText("支付成功");
        txtMoney.setText("￥"+getIntent().getExtras().getString("money"));
        txtOrderNum.setText("订单号: "+getIntent().getExtras().getString("order_num"));
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void initListener() {

    }
    @OnClick({R.id.tv_left, R.id.btn_ok})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.tv_left:
                finish();
                break;
            case R.id.btn_ok:
                finish();
                break;
        }
    }
}
